//
//  TopModel.m
//  Products_B
//
//  Created by lanou on 16/6/3.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "TopModel.h"

@implementation TopModel

+ (NSMutableArray *)topModelAnalyseDataWithJsonDic:(NSDictionary *)jsonDic {
    NSMutableArray *modelArray = [NSMutableArray array];
    NSArray *topBannerArray = jsonDic[@"data"][@"topBanner"];
    for (NSDictionary *dic in topBannerArray) {
        TopModel *topModel = [[TopModel alloc] init];
        [topModel setValuesForKeysWithDictionary:dic];
        [modelArray addObject:topModel];
    }
    return modelArray;
}

@end
